//
//  TDEnsurePriceStatusC.m
//  TBRentClient
//
//  Created by tonbright on 2018/7/2.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDEnsurePriceStatusC.h"

@interface TDEnsurePriceStatusC ()
@property (weak, nonatomic) IBOutlet UILabel *lbe_bound1;

@property (weak, nonatomic) IBOutlet UILabel *lbe_bound1Status;

@property (weak, nonatomic) IBOutlet UILabel *lbe_bound2;

@property (weak, nonatomic) IBOutlet UILabel *lbe_bound2Status;

@end

@implementation TDEnsurePriceStatusC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
    
}

- (void)setupUI {
    self.view.backgroundColor = [UIColor whiteColor];
    _lbe_bound1.text = self.orderDetailModel.bond1;
    _lbe_bound2.text = self.orderDetailModel.bond2;
    
    if ([_orderDetailModel.bond1status isEqualToString:@"2"]) {
        _lbe_bound1Status.text = @"已支付";
    }else {
        _lbe_bound1Status.text = @"未支付";
    }
    
    if ([_orderDetailModel.bond2status isEqualToString:@"2"]) {
        _lbe_bound2Status.text = @"已支付";
    }else {
        _lbe_bound2Status.text = @"未支付";
    }
}

@end
